<template>
	<view class="content" :style="'background:#f7f7f7;'">
		<view class="list-index" :style="'background:#FFFFFF;'">
			<rich-text class="rich-text" :style="'color:#111111;'" :nodes="withdrawal_rule"></rich-text>
		</view>
	</view>
</template>

<script>
	var util = require('@/js/util.js')
	export default {
		data() {
			return {
				withdrawal_rule:'',
			};
		},
		onShow() {
			this.getList()
			let that = this
			let aniosgaodu = 0
			uni.getSystemInfo({
				success: function(res) {
					console.log(res);
					that.zhuangtai = res.statusBarHeight;
					var a = res.model.split(' ');
					if (a[0] == 'iPhone') {
						aniosgaodu = 44;
					} else {
						aniosgaodu = 48;
					}
					that.zhuangtai = parseInt(that.zhuangtai)+4
					console.log(that.zhuangtai)
				}
			});
		},
		onLoad() {
			this.getWithdraralList()
		},
		methods:{
			getWithdraralList(){
				let _self = this
				uni.request({
					url: util.getUrl("cash/index"),
					header: {
						'content-type': 'application/x-www-form-urlencoded',
						'Authori-zation':uni.getStorageSync("token")
					},
					data:{
					},
					method: 'POST',
					success: res => {
						if(res.data.code == 1){
							_self.withdrawal_rule = res.data.data.cash_desc
						}
					},
				});
			},
		}
	}
</script>

<style lang="scss">
	.list-index{
		width: 690upx;
		padding: 40upx 30upx 30upx 30upx;
		display: flex;
		flex-direction: column;
		border-radius: 20upx;
		.rich-text{
			line-height: 48upx;
			font-size: 28upx;
		}
	}
	.content{
		min-height: 100vh;
		width: 750rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		box-sizing: border-box;
		padding: 30upx;
	}
</style>